<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>政策法规</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/aboutus.css">
</head>
<body>
	<!--[if lt IE 9]>
<script type="text/javascript" src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js">
</script>
<![endif]-->
	<jsp:include page="/head.jsp"></jsp:include>
	<!--主内容区-->
	<div class="main">
		<div class="poistion">
			<h4 class="clearfix">
				<span class="icon icons"></span><span> 首页>${pbList.beanlist.get(0).category.cate_name }</span>
			</h4>
		</div>
		<div id="libai" style="display: none;">
			你好：${pbList.beanlist.get(0).category.cate_name }
		</div>
		<div id="aside">
			<div class="aside-title">
				<c:choose>
				<c:when test="${pbList.beanlist.get(0).category.cate_id==10 }">
					<h3>信用百科</h3>
				</c:when>
				<c:when test="${pbList.beanlist.get(0).category.cate_id==11 }">
					<h3>信用百科</h3>
				</c:when>
				<c:otherwise>
					<h3>${pbList.beanlist.get(0).category.cate_name }</h3>
				</c:otherwise>
				</c:choose>
			</div>
			<div class="aside-content">
				<ul class="itemlist">
				<c:choose>
						<c:when test="${pbList.beanlist.get(0).category.cate_id==10 }">
							<li class="item"><a href="news_findByPage?categoryId=10">${pbList.beanlist.get(0).category.cate_name }</a>
							<span class="icon2"></span></li>
						</c:when>
						<c:when test="${pbList.beanlist.get(0).category.cate_id==11 }">
							<li class="item"><a href="news_findByPage?categoryId=10">信用信息</a><span class="icon2"></span></li>
						</c:when>
						<c:otherwise>
							<li class="item"><a href="#">${pbList.beanlist.get(0).category.cate_name }</a></span></li>
						</c:otherwise>
				</c:choose>
				</ul>
			</div>
			<div class="aside-content">
				<ul class="itemlist">
					<c:choose>
						<c:when test="${pbList.beanlist.get(0).category.cate_id==10}">
							<li class="item"><a href="news_findByPage?categoryId=11">信用资料</a><span
								class="icon2"></span></li>
						</c:when>
						<c:when test="${pbList.beanlist.get(0).category.cate_id==11}">
							<li class="item"><a href="news_findByPage?categoryId=11">信用资料</a><span
								class="icon2"></span></li>
						</c:when> 
					</c:choose>
				</ul>
			</div>
		</div>
		<div class="modal" id="newsLis">
			<div  id="listId">
				<div id="newsList">
					<div class="newsList-title">
						<h3>${pbList.beanlist.get(0).category.cate_name }</h3>
						<i></i>
					</div>
					<div class="newsList-content">
						<ul id="news_content">
							<c:forEach items="${pbList.beanlist }" var="news">
								<c:choose>
									<c:when test="${pbList.beanlist.get(0).category.cate_id==6 }">
										<li><span class="icon2"> </span><b>${news.news_title }</b>
										<span class="places" style="float: right;"><a href="downLoad_down?fileName=${news.img }" >点击下载</a></span></li>
									</c:when>
									<c:otherwise>
										<li><span class="icon2"> </span><a
										href="news_findById?news_id=${news.news_id }" target="_blank">${news.news_title }</a>
										<span class="place">${news.news_time }</span></li>
									</c:otherwise>
								</c:choose>
							</c:forEach>
						</ul>
					</div>
					
		<div class="pagenations">
        <ul class="clearfix">
            <li><a href="news_findByPage?categoryId=${pbList.beanlist.get(0).category.cate_id }&currPage=1" disabled="disabled"> 首页</a></li>
            <c:choose>
	            <c:when test="${pbList.currPage>1 }">
	            	<li><a href="news_findByPage?categoryId=${pbList.beanlist.get(0).category.cate_id }&currPage=${pbList.currPage-1 }" disabled="disabled"> 上一页</a></li>
	            </c:when>
	            <c:otherwise>
	            	<li><a href="#" disabled="disabled"> 上一页</a></li>
	            </c:otherwise>
            </c:choose>
            <c:choose>
            	<c:when test="${pbList.currPage<pbList.totalPage }">
            		<li><a href="news_findByPage?categoryId=${pbList.beanlist.get(0).category.cate_id }&currPage=${pbList.currPage+1 }"> 下一页</a></li>
            	</c:when>
            	<c:otherwise>
            		<li><a href="#">下一页</a></li>
            	</c:otherwise>
            </c:choose>
            
            <li><a href="news_findByPage?categoryId=${pbList.beanlist.get(0).category.cate_id }&currPage=${pbList.totalPage }">尾页</a></li>
            <li>第
                <select id="numId" onchange="changePage()">
                	<c:forEach begin="1" end="${pbList.totalPage }" var="num">
                		<c:choose>
                			<c:when test="${pbList.currPage==num }">
                				<option value="${num }" selected="selected">${num }</option>
                			</c:when>
                			<c:otherwise>
                				<option value="${num }">${num }&nbsp;</option>
                			</c:otherwise>
                		</c:choose>
                	</c:forEach>
                </select> &nbsp;页
            </li>
            <li>
                  	共<span>${pbList.totalCount }</span>条记录
            </li>
            <li><span>${pbList.currPage }/${pbList.totalPage }</span>页</li>
        </ul>
    </div>
				</div> 
			</div>
			<div id="god"></div>
		</div>
	</div>
	<!--页脚-->
	<jsp:include page="foot.jsp"></jsp:include>
<!------JS部分------>
<script type="text/javascript">
	function changePage(){
		var num=$("#numId option:selected").val();
		window.location.href="news_findByPage?categoryId=${pbList.beanlist.get(0).category.cate_id }&currPage="+num;
	}
</script>
</body>
</html>